#if !defined(AFX_AWTLISTPEER_H__00A74EC6_7F93_11D2_A427_006097A44215__INCLUDED_)
#define AFX_AWTLISTPEER_H__00A74EC6_7F93_11D2_A427_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// AWTListPeer.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// AWTListPeer window

class AFX_EXT_CLASS AWTListPeer : public CListBox
{
DECLARE_DYNAMIC(AWTListPeer)
// Construction
public:
	AWTListPeer(AWTComponent* comp, BOOL bMulti);

// Attributes
public:

// Operations
public:

	void addItem(CString& item, int index);
	void replaceItem(CString& newValue, int index);
	void clear();
	void select(int index);
	void deselect(int index);
	void setMultipleSelections(BOOL b);
	void makeVisible(int index);
	void delItems(int start, int end);
	void getSelectedIndexes(int** indexes, int* cnt);
	int getSelectedIndex();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(AWTListPeer)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~AWTListPeer();

	// Generated message map functions
protected:
	//{{AFX_MSG(AWTListPeer)
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDblclk();
	afx_msg void OnDestroy();
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnSelchange();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	AWTComponent* m_comp;
	CWnd* m_AWTWindow;
	BOOL m_bMulti;
	int* m_sel;
	bool m_bCapture;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AWTLISTPEER_H__00A74EC6_7F93_11D2_A427_006097A44215__INCLUDED_)
